home *** CD-ROM | disk | FTP | other *** search
- #include <stdio.h>
- #include <conio.h>
- #include <graphics.h>
- main()
- {
- int graphdriver=DETECT, graphmode;
- /* Detect and initialize the graphics system */
- initgraph(&graphdriver, &graphmode, "c:\\turboc");
- /* Display the name of current graphics driver */
- printf("Current graphics driver: %s\n", getdrivername());
- /* Wait for a keystroke before exiting */
- getch();
- closegraph();
- }